package com.hqyj.javaSpringBoot.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.hqyj.javaSpringBoot.modules.account.entity.Resource;
import com.hqyj.javaSpringBoot.modules.common.entiy.ResultEntity;
import com.hqyj.javaSpringBoot.modules.common.entiy.SearchBean;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ResourceService {

    ResultEntity<Resource> insertResource(Resource resource);

    ResultEntity<Resource>  deleteResourceByReourceId(int id);

    ResultEntity<Resource> updateResourceByReourceId(Resource resource);

    Resource getResourceByResourceId(int id);

    PageInfo<Resource> getResources(SearchBean searchBean);

    List<Resource> getResourceByRoleID(int roleId);
}
